# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Josip Ponjavic <josipponjavic at gmail dot com>
# Contributor: Xu Fasheng <fasheng.xu[AT]gmail.com>

pkgname=deepin-shortcut-viewer
pkgver=5.0.7
pkgrel=1
pkgdesc='Deepin Shortcut Viewer'
arch=('loong64' 'x86_64')
url="https://github.com/linuxdeepin/deepin-shortcut-viewer"
license=('GPL3')
depends=('deepin-qt5integration')
makedepends=('qt5-tools')
groups=('deepin')
source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-shortcut-viewer/archive/$pkgver.tar.gz")
sha512sums=('5a1e22608abaacadaf1f0a095a2353250f7f6cde8a379fa207d71a1d6627619ce73e126fe0fe59a0d57053929844ef4836b219f47ecc541e5550805873a71712')

build(){
  cd deepin-shortcut-viewer-$pkgver
  qmake-qt5 PREFIX=/usr
  make
}

package() {
  cd deepin-shortcut-viewer-$pkgver
  make INSTALL_ROOT="$pkgdir" install
}
